<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<%-- <input type="text" id="timestamp" value="${jsSdkVo.timeStamp}"/>
<input type="text" id="nonceStr" value="${jsSdkVo.nonceStr}"/>
<input type="text" id="signature" value="${jsSdkVo.signature}"/>
<input type="text" id="appId" value="${jsSdkVo.appId}"/> --%>

<script type="text/javascript">
//var timestamp = $("#timestamp").val();//时间戳
//var nonceStr = $("#nonceStr").val();//随机串
//var signature = $("#signature").val();//签名
//var appId = $("#appId").val();//签名

var timestamp = ${jsSdkVo.timeStamp};//时间戳
var nonceStr = '${jsSdkVo.nonceStr}';//随机串
var signature = '${jsSdkVo.signature}';//签名
var appId = '${jsSdkVo.appId}'; 

wx.config({
	 debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
	 appId: appId, // 必填，公众号的唯一标识
	 timestamp: timestamp, // 必填，生成签名的时间戳
	 nonceStr: nonceStr, // 必填，生成签名的随机串
	 signature: signature,// 必填，签名，见附录1
	 jsApiList: [ 'checkJsApi',
	              'onMenuShareTimeline',
	              'onMenuShareAppMessage',
	              'onMenuShareQQ',
	              'onMenuShareWeibo',
	              'onMenuShareQZone',
	              'hideMenuItems',
	              'showMenuItems',
	              'hideAllNonBaseMenuItem',
	              'showAllNonBaseMenuItem',
	              'translateVoice',
	              'startRecord',
	              'stopRecord',
	              'onVoiceRecordEnd',
	              'playVoice',
	              'onVoicePlayEnd',
	              'pauseVoice',
	              'stopVoice',
	              'uploadVoice',
	              'downloadVoice',
	              'chooseImage',
	              'previewImage',
	              'uploadImage',
	              'downloadImage',
	              'getNetworkType',
	              'openLocation',
	              'getLocation',
	              'hideOptionMenu',
	              'showOptionMenu',
	              'closeWindow',
	              'scanQRCode',
	              'chooseWXPay',
	              'openProductSpecificView',
	              'addCard',
	              'chooseCard',
	              'openCard'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
});
</script>
